<?php
	//start the session
	session_start();
?>

<!-- registration_form.php view -->

<html>
	<head>
		<title>Registration Page</title>
		<link rel="stylesheet" type="text/css" href="css/style.css" />
	</head>
	
	<body>
		<div id="wrapper">
			<div id="banner"><img src="images/bannerv0.jpg" alt="header graphic"></div>
			<div id="wrapper_links"><br /></div>	
			<div id="wrapper_body">
	
				<h3>Please input your Details</h3>
					
				<form action="processes/register_users.php" method="POST">
					Username:<br /><input type="text" name="username" id="username" /><br />
					Email:<br /><input type="text" name="email" id="email" /><br />
					Password:<br /><input type="password" name="pword" id="pword" /><br />
					Confirm Password:<br /><input type="password" name="confirm_pword" id="confirm_pword" /><br /><br />
					<input type="submit" name="submit" id="submit" value="Submit" />
				</form>
					
				<?php
					//outputs the error/confirmation message from the register_users.php script on this page
					if(isset($_SESSION['message']))
    				{
						echo $_SESSION['message'] . '<br />';
    				}
					
					//end session
					session_destroy();
				?>

			</div>
		</div>	
	</body>
</html>